package pl.makimo.ksr.gui;

import javax.swing.table.AbstractTableModel;

import pl.makimo.fuzzy.linguistics.SummaryFactory;

public class SummaryTableModel extends AbstractTableModel {
	public String[] columnNames = new String[] { "Summary", "T1", "T2", "T3", "T4", "T5", "T6", "T7", "T8", "T9", "T10", "T11", "Weighted" }; 
	
	public String getColumnName(int col) {
        return columnNames[col].toString();
    }
	
	@Override
	public int getColumnCount() {
		return 13;
	}

	@Override
	public int getRowCount() {
		return SummaryFactory.results.length;
	}

	@Override
	public Object getValueAt(int arg0, int arg1) {
		return SummaryFactory.results[arg0][arg1];
	}
	
	public void dataChanged() {
		fireTableDataChanged();
	}
}
